﻿
@using Telerik.Web.Mvc.UI;
@using Nop.Core.Domain.Catalog;
@using Nop.Services.Catalog;

@{    
    var _productAttributeService = EngineContext.Current.Resolve<IProductAttributeService>();
    var allProductAttributes = _productAttributeService.GetAllProductAttributes();


    var productAttributesList = new List<SelectListItem>();
    foreach (var pa in allProductAttributes)
    {
        var item = new SelectListItem()
        {
            Text = pa.Name,
            Value = pa.Id.ToString()
        };
        productAttributesList.Add(item);
    }    
}

@Html.Telerik().DropDownList().Name("ProductAttribute").BindTo(productAttributesList)